﻿/* 
 * Enterprise Library Extensions - DI + ORM.
 * Copyright (C) 2006
 *
 * GNU General Public License
 *
 * This program is free software; you can redistribute 
 * it and/or modify it under the terms of the GNU General Public License 
 * as published by the Free Software Foundation; either version 2 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but 
 * WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 * See the GNU General Public License for more details.
 */
#region Using directives

using System;
using System.Text;

#endregion

namespace ELE.EnterpriseLibrary.Naming.Configuration
{
  /// <summary>
  /// 
  /// </summary>
  public class ComponentInitializer
  {
    /// <summary>
    /// Defines a value
    /// </summary>
    public const int TYPE_VALUE = 0;
    /// <summary>
    /// Defines a reference to an object in the context
    /// </summary>
    public const int TYPE_REF = 1;
    private string mName;
    private object mValue;
    private int mType = TYPE_VALUE;
    /// <summary>
    /// 
    /// </summary>
    public ComponentInitializer()
    {
    }
    /// <summary>
    /// 
    /// </summary>
    public ComponentInitializer(string name, object val, int type)
    {
      mName = name;
      mValue = val;
      mType = type;
    }
    /// <summary>
    /// 
    /// </summary>
    /// <value></value>
    public string Name
    {
      get { return mName; }
      set { mName = value; }
    }
    /// <summary>
    /// 
    /// </summary>
    /// <value></value>
    public object Value
    {
      get { return mValue; }
      set { mValue = value; }
    }
    /// <summary>
    /// 
    /// </summary>
    /// <value></value>
    public int Type
    {
      get { return mType; }
      set { mType = value; }
    }

  }
}
